<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2014/12/17
 * Time: 22:00
 */

namespace Admin\Controller;


use Think\Controller;

class SessionController extends Controller
{
    public function  _initialize()
    {
        $uid = session('uid');
        $username = session('username');
        if (!isset($uid) || !isset($username)) $this->error('非法操作', U('/admin/login', '', ''), 1);
    }
} 